case node["platform_family"]
  when "debian"
    # do things on debian-ish platforms (debian, ubuntu, linuxmint)
    default['mongo']['repository_url'] = 'http://downloads-distro.mongodb.org/repo/debian-sysvinit'
    default['mongo']['packages'] = %w{mongodb-10gen}
    default['mongo']['service'] = 'mongodb'
  when "rhel"
    # do things on RHEL platforms (redhat, centos, scientific, etc)
    default['mongo']['repository_url'] = 'http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/'
    default['mongo']['packages'] = %w{mongo-10gen mongo-10gen-server}
    default['mongo']['service'] = 'mongod'
end
